package es.udc.empresauriostic.geofinder.model;

/**
 * Represents a user status.
 * 
 * @author Santiago Munín González
 * 
 */
public class GameUserData {
	private String userName;
	private int currentStep;
	private int score;

	public GameUserData(String userName, int currentStep, int score) {
		super();
		this.userName = userName;
		this.currentStep = currentStep;
		this.score = score;
	}

	public int getCurrentStep() {
		return currentStep;
	}

	public int getScore() {
		return score;
	}

	public String getUserName() {
		return userName;
	}

	@Override
	public boolean equals(Object o) {
		if (o instanceof GameUserData) {
			return ((GameUserData) o).getUserName().equals(this.userName);
		}
		return false;
	}

}
